package com.myjoje.dao.system;

import com.myjoje.base.BaseDao;
import com.myjoje.config.annotation.MapperConfig;
import com.myjoje.config.support.DaoSupport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
import java.util.Set;

@Repository
@MapperConfig(mapperName = "MenuMapper", tableName = "sy_menu")
public class MenuDao extends BaseDao {

    @Autowired
    private DaoSupport daoSupport;


    public List<String> getMenuParentId(Set set) {
        Map map = getParams();
        map.put("set", set);
        return daoSupport.selectForList(getStatement("getMenuParentId"), map);
    }
}
